using System;
using System.Windows.Forms;

namespace K.Snippets
{
	static partial class WinForms
	{
		public static class ScrollBarSnippets
		{
            static public void SetMaximum(ScrollBar scroll, int max)
            {
                //Scroll.Maximum = SupposedMaximum + Scroll.LargeCange - 1;
                //http://social.msdn.microsoft.com/forums/ja-JP/vbexpressja/thread/ed93e5f5-254c-40bb-bf2e-a871ba6e0f14/
                scroll.Maximum = max + scroll.LargeChange - 1;
            }
        }
	}

}